
//
//  LVFirstViewController.m
//  LEVE
//
//  Created by 上官惠阳 on 2016/12/29.
//  Copyright © 2016年 dashuju. All rights reserved.
//

#import "LVFirstViewController.h"
#import "UIImage+Addition.h"
//#import "LVLoginViewController.h"
//#import "NTESLoginViewController.h"
//#import "NTESRegisterViewController.h"
#import "UIButton+Addition.h"
#import "LVLoginMainViewController.h"
#import "LVRegisterViewController.h"

@interface LVFirstViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UIButton *loginBtn;
@property (weak, nonatomic) IBOutlet UIButton *registerBtn;

@end

@implementation LVFirstViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self makeUI];
}
- (void)makeUI{

    self.loginBtn.layer.cornerRadius = self.loginBtn.height*0.5;
    self.loginBtn.layer.masksToBounds = YES;
    
    self.registerBtn.layer.cornerRadius = self.registerBtn.height*0.5;
    self.registerBtn.layer.masksToBounds = YES;
    
    [self.loginBtn setBackgroundImage:[self.loginBtn buttonImageWithColor:UIColorFromRGB(0xFFB72C)] forState:UIControlStateHighlighted];
    [self.registerBtn setBackgroundImage:[self.registerBtn buttonImageWithColor:UIColorFromRGB(0x7F38F6)] forState:UIControlStateHighlighted];
    
}


- (void)viewWillAppear:(BOOL)animated{
    //导航栏透明
    [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];

    [self.navigationController.navigationBar setShadowImage:[UIImage new]];
}
- (IBAction)loginAction:(id)sender {
    LVLoginMainViewController *loginVc = [[LVLoginMainViewController alloc]init];
//    NTESLoginViewController *loginVc = [[NTESLoginViewController alloc] init];
    [self.navigationController pushViewController:loginVc animated:YES];
}

- (IBAction)registAction:(id)sender {
    LVRegisterViewController *registVc = [[LVRegisterViewController alloc]init];
//    NTESRegisterViewController *registVc = [[NTESRegisterViewController alloc] init];
    [self.navigationController pushViewController:registVc animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
